/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package demo2;

/**
 *
 * @author c0909h1262
 */
public class student extends Thread
{
    //create property
    String rollNumber;
    String name;
    String address;
    int age;

    //Constructoer
    public Student(String rollNumber, String name, String address, int age){
        this.rollNumber = rollNumber;
        this.name = name;
        this.address = address;
        this.age = age;
    }

    private Student() {
        //throw new UnsupportedOperationException("Not yet implemented");
    }

    //override and run
    @Override
    public void run(){
        System.out.println(name+address+age);
    }

 public static void main(String [] args){
    new Student();
 }
}